package sj.pojo;

public class Student extends Person implements java.io.Serializable{
    //成员变量
    private String name;
    static final int age = 18;
    private String address;

    //成员方法

    public String getName() {
        return name;
    }
    static final int getAge(){
        return age;
    }
    protected String getAddress(){
        return address;
    }

    //构造方法
    public Student() {};
    private Student(String name){
        this.name = name;
    }
    protected Student(String name,String address){
        this.name = name;
        this.address = address;
    }


    public String Student(){
        return "{name:"+ name +",age"+ age + ",address"+ address+"}";
    }
}
